home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS064.dsk
/
SYSTEM RELIABILITY.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
506b
|
23 lines
10 PRINT "SYSTEM RELIABILITY"
20 PRINT
30 PRINT "(TO END PROGRAM ENTER 0)"
40 PRINT "OPERATING TIME IN HOURS";
50 INPUT T
60 IF T = 0 THEN 230
70 PRINT "NUMBER OF COMPONENTS";
80 INPUT N
90 Z = 0
100 FOR I = 1 TO N
110 PRINT "COMPONENT ";I
120 PRINT " AVERAGE WEAROUT TIME";
130 INPUT W
140 PRINT " AVERAGE FAILURE RATE";
150 INPUT F
160 Z = Z +1/W +F
170 NEXT I
180 PRINT
190 Z = EXP( -Z *T)
200 PRINT "SYSTEM RELIABILITY = ";Z
210 PRINT
220 GOTO 40
230 PRINT "<CTRL-D>RUNHELLO"